package org.blogsite.greencode.service;

import java.io.File;
import java.util.List;

import org.blogsite.greencode.bean.TeachingSupport_Resource;

/**
 * @author：wzj
 * E-mail: jsun789@gmail.com
 * @date：2010-7-31 下午06:27:27
 */
public interface TeachingSupport_ResourceService {
	/*设置上传文件的文件名*/
	public String generateFileName(String fileName); 
	/*添加资源*/
	public void addResource(TeachingSupport_Resource teachingSupportResource);
	/*查询所有资源*/
	public List getAllResource();
	/*查询指定名称的资源*/
	public List getResourceByName(String name);
	/*查询指定课程名资源*/
	public List getResourceByCname(String name);
	/*模糊查询资源*/
	public List getResourceByBlear(String text);
	//修改资源信息
	public  void updateResource(TeachingSupport_Resource teachingSupportResource);
	//删除资源信息
	public void deleteResource(TeachingSupport_Resource teachingSupportResource);
}
